package office.action.business.form;

import java.util.Date;

import office.bo.business.impl.BidBook;
import platform.common.bo.IIdentifiableObj;
/**
 * 产品明细对应的Form
 * @author ZhangYQ
 *
 */
public class BidBookForm {
	private String id;
	private String projectName;//项目名称
	private String biddingUnit;//招标公司
	private Date   biddingTime;//招标日期
	private String bidUnit;    //中标单位
	private String salesMan;   //业务员
	private String applyMan;   //申请人;
	private double totalPrice; //总价
	private double tenderMoney;//投标金额
	private double bidBookPrice;//标书费
	private double tenderMargin;//投标保证金
	private double bidServicePrice;//中标服务费
	private double otherPrice;//其它费
	private int status;//审批状态
	private int bidStatus;//是否中标
	private String mark;//备注
	private String handUser;
	private String productName;//产品名称
	private String entryRole;//申请人角色
	private String checkUserFee;//标书费用审批人(若申请人是商务经理就不需要次审批)
	private String checkUserCw;//财务审批人
	
	public IIdentifiableObj copyPropertiesToBO(IIdentifiableObj newObj) {
		BidBook bo = (BidBook)newObj;
		bo.setId(this.id);
		bo.setProjectName(projectName);
		bo.setBiddingUnit(biddingUnit);
		bo.setBiddingTime(biddingTime);
		bo.setBidUnit(bidUnit);
		bo.setSalesMan(salesMan);
		bo.setApplyMan(applyMan);
		bo.setTotalPrice(totalPrice);
		bo.setTenderMoney(tenderMoney);
		bo.setBidBookPrice(bidBookPrice);
		bo.setTenderMargin(tenderMargin);
		bo.setBidServicePrice(bidServicePrice);
		bo.setOtherPrice(otherPrice);
		bo.setStatus(status);
		bo.setBidStatus(bidStatus);
		bo.setMark(mark);
		bo.setProductName(productName);
		bo.setEntryRole(entryRole);
		bo.setCheckUserCw(checkUserCw);
		bo.setCheckUserFee(checkUserFee);
		return bo;
	}
	/**
	 * 编辑费用拷贝属性
	 * @param newObj
	 * @return
	 */
	public IIdentifiableObj copyPropertiesToBOByEditFee(IIdentifiableObj newObj) {
		BidBook bo = (BidBook)newObj;
		bo.setTenderMoney(tenderMoney);
		bo.setTenderMargin(tenderMargin);
		bo.setBidServicePrice(bidServicePrice);
		bo.setOtherPrice(otherPrice);
		bo.setTotalPrice(totalPrice);
		bo.setCheckUserFee(checkUserFee);
		return bo;
	}
	
	public void copyPropertiesFromBO(IIdentifiableObj baseBO) {
		BidBook bo = (BidBook)baseBO;
		this.id = bo.getId().toString();
		this.projectName = bo.getProjectName();
		this.biddingUnit = bo.getBiddingUnit();
		this.biddingTime = bo.getBiddingTime();
		this.bidUnit = bo.getBidUnit();
		this.salesMan = bo.getSalesMan();
		this.applyMan = bo.getApplyMan();
		this.totalPrice = bo.getTotalPrice();
		this.tenderMoney = bo.getTenderMoney();
		this.bidBookPrice = bo.getBidBookPrice();
		this.tenderMargin = bo.getTenderMargin();
		this.bidServicePrice = bo.getBidServicePrice();
		this.otherPrice = bo.getOtherPrice();
		this.status = bo.getStatus();
		this.bidStatus = bo.getBidStatus();
		this.mark = bo.getMark();
		this.productName = bo.getProductName();
		this.entryRole = bo.getEntryRole();
		this.checkUserCw = bo.getCheckUserCw();
		this.checkUserFee = bo.getCheckUserFee();
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getProjectName() {
		return projectName;
	}

	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}

	public String getBiddingUnit() {
		return biddingUnit;
	}

	public void setBiddingUnit(String biddingUnit) {
		this.biddingUnit = biddingUnit;
	}

	public Date getBiddingTime() {
		return biddingTime;
	}

	public void setBiddingTime(Date biddingTime) {
		this.biddingTime = biddingTime;
	}

	public String getBidUnit() {
		return bidUnit;
	}

	public void setBidUnit(String bidUnit) {
		this.bidUnit = bidUnit;
	}

	public String getSalesMan() {
		return salesMan;
	}

	public void setSalesMan(String salesMan) {
		this.salesMan = salesMan;
	}

	public double getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(double totalPrice) {
		this.totalPrice = totalPrice;
	}

	public double getTenderMoney() {
		return tenderMoney;
	}

	public void setTenderMoney(double tenderMoney) {
		this.tenderMoney = tenderMoney;
	}

	public double getBidBookPrice() {
		return bidBookPrice;
	}

	public void setBidBookPrice(double bidBookPrice) {
		this.bidBookPrice = bidBookPrice;
	}

	public double getTenderMargin() {
		return tenderMargin;
	}

	public void setTenderMargin(double tenderMargin) {
		this.tenderMargin = tenderMargin;
	}

	public double getBidServicePrice() {
		return bidServicePrice;
	}

	public void setBidServicePrice(double bidServicePrice) {
		this.bidServicePrice = bidServicePrice;
	}

	public double getOtherPrice() {
		return otherPrice;
	}

	public void setOtherPrice(double otherPrice) {
		this.otherPrice = otherPrice;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getMark() {
		return mark;
	}

	public void setMark(String mark) {
		this.mark = mark;
	}

	public int getBidStatus() {
		return bidStatus;
	}

	public void setBidStatus(int bidStatus) {
		this.bidStatus = bidStatus;
	}

	public String getApplyMan() {
		return applyMan;
	}

	public void setApplyMan(String applyMan) {
		this.applyMan = applyMan;
	}

	public String getHandUser() {
		return handUser;
	}

	public void setHandUser(String handUser) {
		this.handUser = handUser;
	}

	public String getEntryRole() {
		return entryRole;
	}

	public void setEntryRole(String entryRole) {
		this.entryRole = entryRole;
	}

	public String getCheckUserFee() {
		return checkUserFee;
	}

	public void setCheckUserFee(String checkUserFee) {
		this.checkUserFee = checkUserFee;
	}

	public String getCheckUserCw() {
		return checkUserCw;
	}

	public void setCheckUserCw(String checkUserCw) {
		this.checkUserCw = checkUserCw;
	}
	public String getProductName() {
		return productName;
	}
	public void setProductName(String productName) {
		this.productName = productName;
	}
	
}
